﻿@model NC.Cather.ContentParams

@if (Model != null)
{
    @Html.HiddenFor(model => model.Id);
    @Html.HiddenFor(model=>model.CreatedAt);
}

<div class="form-group">
    <label class="control-label col-md-2">示例地址</label>
    <div class="col-md-10">
        <input type="text" class="form-control" value="@(Model==null?"":Model.TestUrl)" id="TestUrl" name="TestUrl" onblur="checkUrlIsValide()"/>
    </div>
</div>

<div class="form-group">
    <label class="control-label col-md-2">容器选择器</label>
    <div class="col-md-10">
        @Html.EditorFor(model => model.ContainerSelector, new { htmlAttributes = new { @class = "form-control" } })
        @Html.ValidationMessageFor(model => model.ContainerSelector, "", new { @class = "text-danger" })
    </div>
</div>

<div class="form-group">
    <label class="control-label col-md-2">标题选择器</label>
    <div class="col-md-10">
        @Html.EditorFor(model => model.TitleSelector, new { htmlAttributes = new { @class = "form-control" } })
        @Html.ValidationMessageFor(model => model.TitleSelector, "", new { @class = "text-danger" })
    </div>
</div>

<div class="form-group">
    <label class="control-label col-md-2">作者选择器</label>
    <div class="col-md-10">
        @Html.EditorFor(model => model.AuthorSelector, new { htmlAttributes = new { @class = "form-control" } })
        @Html.ValidationMessageFor(model => model.AuthorSelector, "", new { @class = "text-danger" })
    </div>
</div>

<div class="form-group">
    <label class="control-label col-md-2">出版日期</label>
    <div class="col-md-10">
        @Html.EditorFor(model => model.ComeUpTimeSelector, new { htmlAttributes = new { @class = "form-control" } })
        @Html.ValidationMessageFor(model => model.ComeUpTimeSelector, "", new { @class = "text-danger" })
    </div>
</div>

<div class="form-group">
    <label class="control-label col-md-2">文章详情</label>
    <div class="col-md-10">
        @Html.EditorFor(model => model.ContentSelector, new { htmlAttributes = new { @class = "form-control" } })
        @Html.ValidationMessageFor(model => model.ContentSelector, "", new { @class = "text-danger" })
    </div>
</div>

<div class="form-group">
    <label class="control-label col-md-2">文章类型选择</label>
    <div class="col-md-10">
        @Html.EditorFor(model => model.TypeSelector, new { htmlAttributes = new { @class = "form-control" } })
        @Html.ValidationMessageFor(model => model.TypeSelector, "", new { @class = "text-danger" })
    </div>
</div>


